package com.gwtplatform.samples.nested.client.main;

import com.google.inject.Inject;

import com.guit.client.GuitPresenter;
import com.guit.client.binder.GuitBinder;
import com.guit.client.place.Place;

@SuppressWarnings("rawtypes")
public class SectionPresenter<B extends GuitBinder> extends GuitPresenter<B> implements Place<Void> {

    private MainPresenter mainPagePresenter;

    @Inject
    public void injectMainPagePresenter(MainPresenter mainPagePresenter) {
        this.mainPagePresenter = mainPagePresenter;
    }
    
    @Override
    public void go(Void data) {
        mainPagePresenter.setContent(getView());
    }
}
